package com.xwn.common.database.config;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: xwn
 * @Date: 2020/4/17 0:27
 */
@Configuration
public class MapperScannerConfiguration {
    public MapperScannerConfiguration(){

    }

    @Bean
    public static MapperScannerConfigurer mapperScannerConfigurer() {
        MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
        mapperScannerConfigurer.setBasePackage("com.xwn.**.dao");
        return mapperScannerConfigurer;
    }
}
